package org.jeecg.model.car.respvo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.tomcat.jni.BIOCallback;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class CarDayReportRespVo implements Serializable {
    @ApiModelProperty(value = "车场名称")
    private String parkName;

    @ApiModelProperty(value = "日期")
    @Excel(name = "日期", width = 15, mergeVertical = true)
    private String coverDate;

    @ApiModelProperty(value = "统计分类")
    @Excel(name = "统计分类", width = 15)
    private String reportClass;

    @ApiModelProperty(value = "线上(微信)")
    @Excel(name = "线上(微信)", width = 15, isStatistics = true)
    private BigDecimal weixinpay;

    @ApiModelProperty(value = "线上(支付宝)")
    @Excel(name = "线上(支付宝)", width = 15, isStatistics = true)
    private BigDecimal alipay;

    @ApiModelProperty(value = "优惠抵扣")
    @Excel(name = "优惠抵扣", width = 15, isStatistics = true)
    private BigDecimal disCount;

    @ApiModelProperty(value = "现金")
    @Excel(name = "现金", width = 15, isStatistics = true)
    private BigDecimal xianJin;

    @ApiModelProperty(value = "转账")
    @Excel(name = "转账", width = 15, isStatistics = true)
    private BigDecimal zhuanZhang;

    @ApiModelProperty(value = "扫码(微信)")
    @Excel(name = "扫码(微信)", width = 15, isStatistics = true)
    private BigDecimal weixinpayOffline;

    @ApiModelProperty(value = "扫码(支付宝)")
    @Excel(name = "扫码(支付宝)", width = 15, isStatistics = true)
    private BigDecimal alipayOffline;

    @ApiModelProperty(value = "刷卡支付")
    @Excel(name = "刷卡支付", width = 15, isStatistics = true)
    private BigDecimal pos;

    @ApiModelProperty(value = "扫码支付")
    @Excel(name = "扫码支付", width = 15, isStatistics = true)
    private BigDecimal scanOffline;

    @ApiModelProperty(value = "小计")
    @Excel(name = "小计", width = 15, isStatistics = true)
    private BigDecimal subTotal;

    @ApiModelProperty(value = "服务手续费")
    private BigDecimal serviceFee;

    public CarDayReportRespVo(){
    }

    public CarDayReportRespVo(String parkName,String reportClass, String coverDate) {
        this.parkName = parkName;
        this.reportClass = reportClass;
        this.coverDate = coverDate;
        this.disCount = BigDecimal.ZERO;
        this.xianJin = BigDecimal.ZERO;
        this.zhuanZhang = BigDecimal.ZERO;
        this.weixinpayOffline = BigDecimal.ZERO;
        this.alipayOffline = BigDecimal.ZERO;
        this.pos =  BigDecimal.ZERO;
        this.weixinpay = BigDecimal.ZERO;
        this.alipay = BigDecimal.ZERO;
        this.subTotal = BigDecimal.ZERO;
        this.serviceFee = BigDecimal.ZERO;
        this.scanOffline = BigDecimal.ZERO;
    }
}
